package com.byxy.po;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

//分类表

@Table(name = "Category")
@Data
public class Category{

    @Column(name = "id", type = MySqlTypeConstant.INT, length = 8, isKey = true, isAutoIncrement = true)
    private Integer id;//分类id
    @Column(name = "name", type = MySqlTypeConstant.VARCHAR, length = 20)
    private String name;//分类名称
    @Column(name = "up_time", type = MySqlTypeConstant.DATETIME)
    private Date up_time;//更新时间

}
